  <!-- Site Showcase -->
  <div class="site-showcase">
    <div class="slider-mask overlay-transparent"></div>
    <!-- Start Hero Slider -->
    <div class="hero-slider flexslider clearfix" data-autoplay="yes" data-pagination="no" data-arrows="yes" data-style="fade" data-pause="yes">
      <ul class="slides">
      <?php foreach($featured_Properties as $property): ?>
      
		<?php 
        if($property['Property']['image1'])
        $image1	=	'/files/property/thumb/'.$property['Property']['image1'];
        else
        $image1	=	'http://placehold.it/600x360&text=IMAGE+COMMING+SOON';


        if($property['User']['image'])
        $image	=	'/files/user/thumb/'.$property['User']['image'];
        else
        $image	=	'http://placehold.it/400x360&text=IMAGE+COMMING+SOON';

         ?>
      
        <li class=" parallax" style="background-image:url(<?php echo $this->Html->url($image1); ?>)">
          <div class="flex-caption">
              <strong class="title"><?php echo substr($property['Property']['title'],0,15); ?>, <em><?php echo $property['City']['abbrev']; ?></em></strong>
             <div class="price"><strong><?php if(isset($websiteSettings['currency_symbol'])) echo __($websiteSettings['currency_symbol']); ?></strong><span><?php echo number_format($property['Property']['price']); ?></span></div>
             <a href="<?php echo $this->Html->url(array('controller'=>'Properties','action'=>'view',$property['Property']['id'],Inflector::slug(strtolower($property['Property']['title']),'-'))); ?>" class="btn btn-primary btn-block"><?php echo __('Details');?></a>
              <div class="hero-agent">
                  <img src="<?php echo $this->Html->url($image); ?>" alt="" class="hero-agent-pic">
                  <a href="<?php echo $this->Html->url(array('controller'=>'users','action'=>'agent_detail',$property['User']['id'],Inflector::slug(strtolower($property['User']['first_name'].' '.$property['User']['last_name']),'-'))) ?>" class="hero-agent-contact" data-placement="left"  data-toggle="tooltip" title="" data-original-title="<?php echo __('Contact Agent');?>"><i class="fa fa-envelope"></i></a>
             </div>
          </div>
        </li>
      <?php endforeach; ?>
      </ul>
    </div>
    <!-- End Hero Slider --> 
    <!-- Site Search Module -->
    <div class="site-search-module">
      <div class="container">
        <div class="site-search-module-inside">
			<?php echo $this->Form->create('Property', array('type'=>'get','role' => 'form','url'=>array('controller'=>'Properties','action'=>'index'))); ?>
            <div class="form-group">
              <div class="row">
                <div class="col-md-3">
				<?php echo $this->Form->input('pt', array('options'=>$getPropertyType,'required'=>false,'empty'=>'Select Type','label' => false,'div' => false,'class' => 'form-control input-lg selectpicker', 'placeholder' => 'Propery Type'));?>
<!--                    <select name="propery_type" class="form-control input-lg selectpicker">
                        <option selected>Type</option>
                      	<option>Villa</option>
                      	<option>Family House</option>
                      	<option>Single Home</option>
                      	<option>Cottage</option>
                      	<option>Apartment</option>
                    </select>
-->                </div>
                <div class="col-md-2">
				<?php echo $this->Form->input('ct', array('options'=>array('rent'=>'For Rent','sale'=>'For Buy'),'required'=>false,'empty'=>'Select Contract','label' => false,'div' => false,'class' => 'form-control input-lg selectpicker', 'placeholder' => 'Propery Type'));?>
                <!--    <select name="propery_contract_type" class="form-control input-lg selectpicker">
                        <option selected>Contract</option>
                      <option>Rent</option>
                      <option>Buy</option>
                    </select>-->
                </div>
                <div class="col-md-3">
				<?php echo $this->Form->input('ci', array('options'=>$getCity,'empty'=>'Select City', 'required'=>false,'label' => false,'div' => false,'class' => 'form-control input-lg selectpicker', 'placeholder' => 'Propery Type'));?>
                    <!--<select name="propery_location" class="form-control input-lg selectpicker">
                        <option selected>Location</option>
                      <option>New York</option>
                    </select>-->
                </div>
                <div class="col-md-2"> <button type="submit" class="btn btn-primary btn-block btn-lg"><i class="fa fa-search"></i> <?php echo __('Search'); ?> </button> </div>
                <div class="col-md-2"> <a href="#" id="ads-trigger" class="btn btn-default btn-block"><i class="fa fa-plus"></i> <span><?php echo __('Advanced'); ?></span></a> </div>
              </div>
              <div class="row hidden-xs hidden-sm">
                <div class="col-md-2">
                  <label><?php echo __('Min Beds'); ?></label>
				<?php echo $this->Form->input('mnb', array('options'=>$dropdown_options,'empty'=>'Any', 'required'=>false,'label' => false,'div' => false,'class' => 'form-control input-lg selectpicker', 'placeholder' => 'Propery Type'));?>
                </div>
                <div class="col-md-2">
                  <label><?php echo __('Min Baths'); ?></label>
				<?php echo $this->Form->input('mnbt', array('options'=>$dropdown_options,'empty'=>'Any', 'required'=>false,'label' => false,'div' => false,'class' => 'form-control input-lg selectpicker', 'placeholder' => 'Propery Type'));?>
                </div>
                <div class="col-md-2">
                  <label><?php echo __('Min Price'); ?></label>
                    <select name="mnp" class="form-control input-lg selectpicker">
                      <option value=""><?php echo __('Any'); ?></option>
                      <option value="1000"><?php if(isset($websiteSettings['currency_symbol'])) echo __($websiteSettings['currency_symbol']); ?> 1000</option>
                      <option value="5000"><?php if(isset($websiteSettings['currency_symbol'])) echo __($websiteSettings['currency_symbol']); ?> 5000</option>
                      <option value="10000"><?php if(isset($websiteSettings['currency_symbol'])) echo __($websiteSettings['currency_symbol']); ?> 10000</option>
                      <option value="50000"><?php if(isset($websiteSettings['currency_symbol'])) echo __($websiteSettings['currency_symbol']); ?> 50000</option>
                      <option value="100000"><?php if(isset($websiteSettings['currency_symbol'])) echo __($websiteSettings['currency_symbol']); ?> 100000</option>
                      <option value="500000"><?php if(isset($websiteSettings['currency_symbol'])) echo __($websiteSettings['currency_symbol']); ?> 500000</option>
                      <option value="1000000"><?php if(isset($websiteSettings['currency_symbol'])) echo __($websiteSettings['currency_symbol']); ?> 1000000</option>
                      <option value="3000000"><?php if(isset($websiteSettings['currency_symbol'])) echo __($websiteSettings['currency_symbol']); ?> 3000000</option>
                      <option value="5000000"><?php if(isset($websiteSettings['currency_symbol'])) echo __($websiteSettings['currency_symbol']); ?> 5000000</option>
                      <option value="10000000"><?php if(isset($websiteSettings['currency_symbol'])) echo __($websiteSettings['currency_symbol']); ?> 10000000</option>
                      <option value="50000000"><?php if(isset($websiteSettings['currency_symbol'])) echo __($websiteSettings['currency_symbol']); ?> 50000000</option>
                      <option value="500000000"><?php if(isset($websiteSettings['currency_symbol'])) echo __($websiteSettings['currency_symbol']); ?> 500000000</option>
                    </select>
                </div>
                <div class="col-md-2">
                  <label><?php echo __('Max Price'); ?></label>
                    <select name="mxp" class="form-control input-lg selectpicker">
                      <option value=""><?php echo __('Any'); ?></option>
                      <option value="5000"><?php if(isset($websiteSettings['currency_symbol'])) echo __($websiteSettings['currency_symbol']); ?> 5000</option>
                      <option value="10000"><?php if(isset($websiteSettings['currency_symbol'])) echo __($websiteSettings['currency_symbol']); ?> 10000</option>
                      <option value="50000"><?php if(isset($websiteSettings['currency_symbol'])) echo __($websiteSettings['currency_symbol']); ?> 50000</option>
                      <option value="100000"><?php if(isset($websiteSettings['currency_symbol'])) echo __($websiteSettings['currency_symbol']); ?> 100000</option>
                      <option value="500000"><?php if(isset($websiteSettings['currency_symbol'])) echo __($websiteSettings['currency_symbol']); ?> 500000</option>
                      <option value="1000000"><?php if(isset($websiteSettings['currency_symbol'])) echo __($websiteSettings['currency_symbol']); ?> 1000000</option>
                      <option value="3000000"><?php if(isset($websiteSettings['currency_symbol'])) echo __($websiteSettings['currency_symbol']); ?> 3000000</option>
                      <option value="5000000"><?php if(isset($websiteSettings['currency_symbol'])) echo __($websiteSettings['currency_symbol']); ?> 5000000</option>
                      <option value="10000000"><?php if(isset($websiteSettings['currency_symbol'])) echo __($websiteSettings['currency_symbol']); ?> 10000000</option>
                      <option value="50000000"><?php if(isset($websiteSettings['currency_symbol'])) echo __($websiteSettings['currency_symbol']); ?> 50000000</option>
                      <option value="500000000"><?php if(isset($websiteSettings['currency_symbol'])) echo __($websiteSettings['currency_symbol']); ?> 500000000</option>
                      <option value="1000000000"><?php if(isset($websiteSettings['currency_symbol'])) echo __($websiteSettings['currency_symbol']); ?> 1000000000</option>
                    </select>
                </div>
                <div class="col-md-2">
                  <label><?php echo __('Min Area (Sq Ft)'); ?></label>
                  <input name="mna" type="text" class="form-control input-lg" placeholder="Any">
                </div>
                <div class="col-md-2">
                  <label><?php echo __('Max Area (Sq Ft)'); ?></label>
                  <input name="mxa" type="text" class="form-control input-lg" placeholder="Any">
                </div>
              </div>
            </div>
          </form>
        </div>
      </div>
    </div>
  </div>
  <div class="main" role="main">
    <div id="content" class="content full">
      <div class="featured-blocks">
        <div class="container">
          <div class="row">
            <div class="col-md-4 col-sm-4 featured-block"> <img src="<?php echo $this->Html->url('/images/search-anywhere.jpg'); ?>" alt="Search Anywhere" class="img-thumbnail">
              <h3><?php echo __('Search From Anywhere'); ?></h3>
              <p><?php echo __('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla convallis egestas rhoncus. Donec facilisis fermentum sem, ac viverra ante luctus vel'); ?>.</p>
            </div>
            <div class="col-md-4 col-sm-4 featured-block"> <img src="<?php echo $this->Html->url('/images/friendly-agents.jpg'); ?>" alt="Friendly Agents" class="img-thumbnail">
              <h3><?php echo __('Friendly Agents'); ?></h3>
              <p><?php echo __('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla convallis egestas rhoncus. Donec facilisis fermentum sem, ac viverra ante luctus vel'); ?>.</p>
            </div>
            <div class="col-md-4 col-sm-4 featured-block"> <img src="<?php echo $this->Html->url('/images/buy-or-rent.jpg'); ?>" alt="Search Anywhere" class="img-thumbnail">
              <h3><?php echo __('Buy or Rent'); ?></h3>
              <p><?php echo __('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla convallis egestas rhoncus. Donec facilisis fermentum sem, ac viverra ante luctus vel'); ?>.</p>
            </div>
          </div>
        </div>
      </div>
      <div class="spacer-40"></div>
      <div id="featured-properties">
        <div class="container">
          <div class="row">
            <div class="col-md-12">
              <div class="block-heading">
                <h4><span class="heading-icon"><i class="fa fa-star"></i></span> <?php echo __('Featured Properties');?></h4>
              </div>
            </div>
          </div>
          <div class="row">
            <ul class="owl-carousel owl-alt-controls" data-columns="4" data-autoplay="no" data-pagination="no" data-arrows="yes" data-single-item="no">
				<?php foreach($featured_Properties as $property): ?>
              <li class="item property-block">
              		<a href="<?php echo $this->Html->url(array('controller'=>'Properties','action'=>'view',$property['Property']['id'],Inflector::slug(strtolower($property['Property']['title']),'-'))); ?>" class="property-featured-image">
                    	<?php 
						if($property['Property']['image1'])
						$image1	=	'/files/property/thumb/'.$property['Property']['image1'];
						else
						$image1	=	'http://placehold.it/600x360&text=IMAGE+COMMING+SOON';
						 ?>
                        <img src="<?php echo $this->Html->url($image1); ?>" alt="">
                     	<span class="images-count"><i class="fa fa-picture-o"></i> 2</span>
                     	<span class="badges"><?php if(isset($property['Property']['contract_type'])) echo  __(ucwords($property['Property']['contract_type'])); ?></span>
                 	</a>
                	<div class="property-info">
                  	<h4><a href="<?php echo $this->Html->url(array('controller'=>'Properties','action'=>'view',$property['Property']['id'],Inflector::slug(strtolower($property['Property']['title'])),'-')); ?>"><?php echo strtolower(substr($property['Property']['title'],0,25)); ?></a></h4>
                  	<span class="location"><?php if(isset($property['City']['abbrev'])) echo $property['City']['abbrev']; ?></span>
                  	<div class="price"><strong><?php if(isset($websiteSettings['currency_symbol'])) echo __($websiteSettings['currency_symbol']); ?></strong><span><?php echo number_format($property['Property']['price']); ?></span></div>
                	</div>
              	</li>
				<?php endforeach; ?>
            </ul>
          </div>
        </div>
      </div>
      <div class="spacer-40"></div>
      <div class="container">
        <div class="row">
          <div class="col-md-9">
            <div class="block-heading">
                <h4><span class="heading-icon"><i class="fa fa-leaf"></i></span><?php echo __('Recently Listed');?></h4>
                <a href="<?php echo $this->Html->url(array('controller'=>'Properties','action'=>'index')); ?>" class="btn btn-primary btn-sm pull-right"><?php echo __('View more properties');?> <i class="fa fa-long-arrow-right"></i></a>
            </div>
            <div class="property-listing">
              	<ul>
				<?php foreach($Properties as $property): ?>
                	<li class="type-rent col-md-12">
                  	<div class="col-md-4">
						<?php 
						if($property['Property']['image1'])
						$image1	=	'/files/property/thumb/'.$property['Property']['image1'];
						else
						$image1	=	'http://placehold.it/600x360&text=IMAGE+COMMING+SOON';
						 ?>

                    		<a href="<?php echo $this->Html->url(array('controller'=>'Properties','action'=>'view',$property['Property']['id'],Inflector::slug(strtolower($property['Property']['title']),'-'))); ?>" class="property-featured-image">
                            	<img src="<?php echo $this->Html->url($image1); ?>" alt="">
                            	<span class="images-count"><i class="fa fa-picture-o"></i> 2</span>
                            	<span class="badges"><?php if(isset($property['Property']['contract_type'])) echo __(ucwords($property['Property']['contract_type'])); ?></span>
                       	</a>
                   	</div>
                  	<div class="col-md-8">
                    		<div class="property-info">
                      		<div class="price"><strong><?php if(isset($websiteSettings['currency_symbol'])) echo __($websiteSettings['currency_symbol']); ?></strong><span><?php echo number_format($property['Property']['price']); ?></span></div>
                      		<h3><a href="<?php echo $this->Html->url(array('controller'=>'Properties','action'=>'view',$property['Property']['id'],Inflector::slug(strtolower($property['Property']['title']),'-'))); ?>"><?php echo substr($property['Property']['title'],0,30); ?></a></h3>
                      		<p><?php echo substr($property['Property']['description'],0,150); ?></p>
                    		</div>
                    		<div class="property-amenities clearfix">
                      		<span class="area"><strong><?php echo $property['Property']['area']; ?></strong>  <?php echo __('Area'); ?></span>
                    			<span class="baths"><strong><?php echo $property['Property']['baths']; ?></strong>  <?php echo __('Baths'); ?></span>
                        		<span class="beds"><strong><?php echo $property['Property']['beds']; ?></strong>  <?php echo __('Beds'); ?></span>
                        		<span class="parking"><strong><?php echo $property['Property']['parking']; ?></strong>  <?php echo __('Parking'); ?></span>
                     		</div>
            			</div>
            		</li>
				<?php endforeach;?>
              	</ul>
            </div>
          </div>
          <!-- Start Sidebar -->

          <div class="sidebar right-sidebar col-md-3">
            <div class="widget sidebar-widget popular-agent">
                <h3 class="widgettitle"><?php echo __('Popular Agent');?></h3>
              	  <a href="#"><img src="<?php echo $this->Html->url('/files/user/agent1.jpg'); ?>" alt="" class="img-thumbnail"></a>
                <a href="#" class="btn btn-sm btn-primary pull-right"><?php echo __('more details');?></a>
             	  <h4><a href="#">Brooklyn Coyle</a></h4>
            </div>
            <?php /*?><div class="widget sidebar-widget latest-testimonials">
              <h3 class="widgettitle">Customer's Testimonials</h3>
              <ul class="testimonials">
                <li>
                  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla convallis egestas rhoncus. Donec facilisis fermentum sem, ac viverra ante luctus vel. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla convallis egestas rhoncus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing.</p>
                  <img src="<?php echo $this->Html->url('/files/user/client1.jpg'); ?>" alt="Happy Client" class="testimonial-sender"> <cite>Mellisa - <strong>My company</strong> <br>
                  <a href="#">www.companyurl.com</a> </cite> </li>
              </ul>
            </div><?php */?>
            
                      <div class="widget sidebar-widget">
            <?php //echo $this->element('latest-posts'); ?>
          <?php echo $this->element('latest-posts', array(), array('cache' => array('config' => 'cache'))); ?>
            
              </div>

            
          </div>
        </div>
      </div>
      <div class="container">
        	<div class="block-heading">
          		<h4><span class="heading-icon"><i class="fa fa-users"></i></span><?php echo __('Our Partners');?></h4>
          		<a href="about.html" class="btn btn-primary btn-sm pull-right"><?php echo __('All partners');?> <i class="fa fa-long-arrow-right"></i></a>
       		</div>
         <div class="row">
            <ul class="owl-carousel" id="clients-slider" data-columns="6" data-autoplay="yes" data-pagination="no" data-arrows="no" data-single-item="no" data-items-desktop="6" data-items-desktop-small="4" data-items-mobile="2" data-items-tablet="4">
              <li class="item"> <a href="#"><img src="images/partner-1.png" alt=""></a> </li>
              <li class="item"> <a href="#"><img src="images/partner-2.png" alt=""></a> </li>
              <li class="item"> <a href="#"><img src="images/partner-3.png" alt=""></a> </li>
              <li class="item"> <a href="#"><img src="images/partner-4.png" alt=""></a> </li>
              <li class="item"> <a href="#"><img src="images/partner-5.png" alt=""></a> </li>
              <li class="item"> <a href="#"><img src="images/partner-1.png" alt=""></a> </li>
              <li class="item"> <a href="#"><img src="images/partner-2.png" alt=""></a> </li>
              <li class="item"> <a href="#"><img src="images/partner-3.png" alt=""></a> </li>
              <li class="item"> <a href="#"><img src="images/partner-4.png" alt=""></a> </li>
              <li class="item"> <a href="#"><img src="images/partner-5.png" alt=""></a> </li>
            </ul>
         </div>
      	</div>
    </div>
  </div>
